<?php
	include 'ZionHeader.inc';
?>

<html>
<body>
	<?php
		$name = $_SESSION['UName'];
		$password = $_POST['password'];
		//Need to compare $name with username of announcement
	?>

<?php

$Vehicle = $_POST['VehicleID'];
$RegUser = $_POST['RegUserID'];
$Ann = $_POST['AnnID'];
$Timestamp = date(r);
//echo date(r);
//echo $Vehicle;
//echo $RegUser;
//echo $Ann;

include 'DatabaseConnect.inc';

$query = "INSERT INTO Notification (Timestamp, VehicleID, RegUserID, AnnounceID ) VALUES ('$Timestamp', '$Vehicle', '$RegUser', '$Ann')";

mysql_query($query);
//echo mysql_error();

mysql_close();
?>

<h1>Notification has been added!</h1>
<br />
<br />
<a href="announcement.php">Return To Announcement</a>

</body>
</html>

